package com.lab.book.sharding.mapper;

import java.sql.SQLException;
import java.util.List;

public interface CommonMapper<T, P> {
	P insert(T entity) throws SQLException;

	void delete(P primaryKey) throws SQLException;

	List<T> selectAll() throws SQLException;
}
